package com.jcl.recruit.elasticsearch.resume.model;

import com.jcl.core.utils.DateUtils;

import java.util.Date;

public class SearchResumePersInfo {

    private Integer id;

    private Integer resumeId;

    private String name;

    private String sex;

    private Integer age;

    private String mobile;

    private String email;

    private Date birthday;

    private Long birthdayTime;

    private String birthdayStr;

    private String currentAddress;

    private String currentCity;

    private String currentSalary;

    private String salaryStart;

    private String salaryEnd;

    private Integer workYear;

    private String workLastPosition;

    private String workLastCompany;

    private String eduLastEducation;

    private String eduLastSchool;

    private String eduLastSchoolTag;

    private String eduLastMajor;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getResumeId() {
        return resumeId;
    }

    public void setResumeId(Integer resumeId) {
        this.resumeId = resumeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {

        if(null != birthday){
            age = DateUtils.formatAge(birthday);
        }
        return age;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Long getBirthdayTime() {
        if(null != birthday){
            birthdayTime = birthday.getTime();
        }
        return birthdayTime;
    }

    public String getBirthdayStr() {
        return birthdayStr;
    }

    public void setBirthdayStr(String birthdayStr) {
        this.birthdayStr = birthdayStr;
    }

    public String getCurrentAddress() {
        return currentAddress;
    }

    public void setCurrentAddress(String currentAddress) {
        this.currentAddress = currentAddress;
    }

    public String getCurrentCity() {
        return currentCity;
    }

    public void setCurrentCity(String currentCity) {
        this.currentCity = currentCity;
    }

    public String getCurrentSalary() {
        return currentSalary;
    }

    public void setCurrentSalary(String currentSalary) {
        this.currentSalary = currentSalary;
    }

    public String getSalaryStart() {
        return salaryStart;
    }

    public void setSalaryStart(String salaryStart) {
        this.salaryStart = salaryStart;
    }

    public String getSalaryEnd() {
        return salaryEnd;
    }

    public void setSalaryEnd(String salaryEnd) {
        this.salaryEnd = salaryEnd;
    }

    public Integer getWorkYear() {
        return workYear;
    }

    public void setWorkYear(Integer workYear) {
        this.workYear = workYear;
    }

    public String getWorkLastPosition() {
        return workLastPosition;
    }

    public void setWorkLastPosition(String workLastPosition) {
        this.workLastPosition = workLastPosition;
    }

    public String getWorkLastCompany() {
        return workLastCompany;
    }

    public void setWorkLastCompany(String workLastCompany) {
        this.workLastCompany = workLastCompany;
    }

    public String getEduLastEducation() {
        return eduLastEducation;
    }

    public void setEduLastEducation(String eduLastEducation) {
        this.eduLastEducation = eduLastEducation;
    }

    public String getEduLastSchool() {
        return eduLastSchool;
    }

    public void setEduLastSchool(String eduLastSchool) {
        this.eduLastSchool = eduLastSchool;
    }

    public String getEduLastSchoolTag() {
        return eduLastSchoolTag;
    }

    public void setEduLastSchoolTag(String eduLastSchoolTag) {
        this.eduLastSchoolTag = eduLastSchoolTag;
    }

    public String getEduLastMajor() {
        return eduLastMajor;
    }

    public void setEduLastMajor(String eduLastMajor) {
        this.eduLastMajor = eduLastMajor;
    }
}